local skels = {}

for i = 1, 9, 1 do

local guimou = fk.CreateSkill({
    name = "sj3__guimou__"..i,--技能名就是标记名，标记内容是记录的牌名
    tags = {Skill.Limited},
  })
  
  Fk:loadTranslationTable{
    ["sj3__guimou__"..i] = "鬼谋",
    [":sj3__guimou__"..i] = "",
  }

  guimou:addEffect("viewas", {
    mute = true,
    pattern = ".",
    dynamic_desc = function(self, player)--技能描述
      if player:getMark(guimou.name) ~= 0 then
        if player:usedSkillTimes(guimou.name,Player.HistoryGame) == 0 then
          return "<b>限定技</b>，你可以视为使用或打出一张<br><font color='red'>【"..Fk:translate(player:getMark(guimou.name)).."】</font>。"
        else
          return "<b>限定技</b>，你可以视为使用或打出一张<br>【"..Fk:translate(player:getMark(guimou.name)).."】。"
        end
      end
      return ""
    end,
    prompt = function (self, player, selected_cards, selected)
      return "#sj3__guimou_zu:::"..Fk:translate(player:getMark(guimou.name))
    end,
    before_use = function (self, player, use)
      player:broadcastSkillInvoke("sj3__guimou__9")
      player.room:notifySkillInvoked(player,"sj3__guimou__9",nil,nil)
    end,
    card_filter = Util.FalseFunc,
    view_as = function (self, player, cards)
      local c = Fk:cloneCard(player:getMark(guimou.name))
      c.skillName = guimou.name
      return c
    end,
    enabled_at_response = function (self,player,response)
      return player:usedSkillTimes(guimou.name,Player.HistoryGame) == 0 and player:getMark(guimou.name) ~= 0
    end,
    enabled_at_play = function (self,player)
      return player:usedSkillTimes(guimou.name,Player.HistoryGame) == 0 and player:getMark(guimou.name) ~= 0
    end,
  })

  table.insert(skels, guimou)
end

Fk:loadTranslationTable{
  ["#sj3__guimou_zu"] = "鬼谋：你可以视为使用或打出一张【%arg】",
  
  ["$sj3__guimou__91"] = "我有三窟之筹谋，不蹈背水之维谷。",
  ["$sj3__guimou__92"] = "已积千里跬步，欲履万里河山。",
}

  return skels